home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer (Italian) 30
/
PC Gamer IT CD 30 1-2.iso
/
MOTS
/
GAMEDATA
/
RESOURCE
/
JKMRES.GOO
/
cog_00_desttrail.cog
< prev
next >
Wrap
Text File
|
1998-02-25
|
817b
|
41 lines
# Jedi Knight Cog Script
#
# 00_DESTTRAIL.COG
#
# Leave a trail of particles behind the force destruction projectile
#
# [YB]
#
# (C) 1997 LucasArts Entertainment Co. All Rights Reserved
flags=0x240
symbols
template trail=+dest_trail local
int dummy local
message created
message pulse
end
# ========================================================================================
code
created:
if (trail != -1) SetThingPulse(GetSenderRef(), 0.05);
Return;
# ........................................................................................
pulse:
dummy = CreateThing(trail, GetSenderRef());
if(jkGetBubbleDistance(GetSenderRef()) <= 1.0) DestroyThing(GetSenderRef());
Return;
end